import logging
import logging.config

class Logger(object):   
    log = None   
    @staticmethod   
    def getLogger():
        import threading 
        mylock = threading.RLock()   
        mylock.acquire()   
        if not Logger.log:
            logging.config.fileConfig("./logging.properties")
            Logger.log = logging.getLogger("etl")
        mylock.release()
        return Logger.log

logger=Logger.getLogger()